import Layout from '@/layout/index.vue'
export const constantRoute = [
    {
        path: '/login',
        component: () => import('@/views/login/index.vue'),
        name: 'login',
        hidden: true,
    },
    {
        path: '/',
        component: Layout,
        redirect: 'home',
        meta: { title: 'laout', icon: 'HomeFilled' },
        children: [
            {
                path: 'home',
                component: () => import('@/views/home/index.vue'),
                name: 'Home',
                meta: { title: '首页', icon: 'HomeFilled' },
            }
        ]
    },
    {
        path: '/system',
        component: Layout,
        name: 'System',
        meta: { title: '系统管理', icon: 'Tools' },
        children: [
            {
                path: 'user',
                component: () => import('@/views/sys/user/index.vue'),
                name: 'User',
                meta: { title: '用户管理' },
            },
            {
                path: 'role',
                component: () => import('@/views/sys/role/index.vue'),
                name: 'Role',
                meta: { title: '角色管理' },
            },
            {
                path: 'permission',
                component: () => import('@/views/sys/permission/index.vue'),
                name: 'Permission',
                meta: { title: '权限管理' },
            }
        ]
    },
    {
        path: '/404',
        component: () => import('@/views/error-page/404.vue'),
        name: '404',
        hidden: true,
    },
    {
        path: '/:pathMatch(.*)*',
        redirect: '/404',
        name: 'redirect',
        hidden: true,
    },
]